package com.mlk.busPram.api;

import com.mlk.busPram.service.BusParamService;
import com.mlk.core.util.ServerResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 业务参数API
 */
@RestController
@RequestMapping("/api/busParam")
public class BusParamAPI {

    @Resource
    private BusParamService busParamService;

    /**
     * 查询售后参数信息
     * @param typeId
     * @return
     */
    @GetMapping("queryParam")
    public ServerResponse queryParam(Integer typeId){
        return this.busParamService.queryParam(typeId);
    }

}
